<?php
/**
 * Created by PhpStorm.
 * User: wangan
 * Date: 2018/3/28
 * Time: 10:11
 */
namespace App\Service;

use App\Model\Machine;
use App\Model\MachineSlots;
use App\Model\SalesDetail;
use Illuminate\Support\Facades\DB;

class MachineService
{
    /**
     *获取我的售货机列表
    */
    public static function getMyMachineList(){
        $model_ret = Machine::get();
        return $model_ret;
    }

    public static function getMachineSlots($str_macineId){
        $model_ret = MachineSlots::where(['machine_id'=>$str_macineId])
            ->orderBy('slot_id', 'asc')
            ->get();
        return $model_ret;
    }



}